﻿#include "typeconfig.h"
#include "ui_typeconfig.h"

typeconfig::typeconfig(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::typeconfig)
{
    ui->setupUi(this);
    this->setWindowIcon(QIcon(":/resourse/peizhi.png"));


    QString sql = QStringLiteral("SELECT 产品型号 FROM product_model");
    QSqlQueryModel *model = new QSqlQueryModel(ui->tableView);
    model->setQuery(sql);
    //model->setTable("product_model"); //产品型号表
    ui->tableView->setModel(model);
}

typeconfig::~typeconfig()
{
    delete ui;
}


